package com.deryun.tyl.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.deryun.tyl.bean.Platform;
import com.deryun.tyl.service.impl.PlatformServiceImpl;

@Controller
@RequestMapping("platform")
public class PlatformController {
	
	@Resource(name="platformServiceImpl")
	private PlatformServiceImpl platformServiceImpl;
	
	@RequestMapping("/updatePlatform")
	public String updatePlatform(Platform platform,HttpServletRequest request){
		platformServiceImpl.updatePlatform(platform);
		request.setAttribute("about", "success");
		return "forward:/ftoac/toPlatform";
	}
}
